﻿

public class Request_AddComment : RequestBase
{

    public const string Key = "AddComment";

    public AddCommentRequestData addCommentReqData = new AddCommentRequestData();

    protected override ISerialize requestData
    {
        get
        {
            return addCommentReqData;
        }
    }

    public Request_AddComment() : base()
    {
        MessagePacket.key = Key;
    }

    public override void OnSend()
    {
        base.OnSend();

        GameDebug.Log($"{addCommentReqData.momentUserId} {addCommentReqData.momentId} Add Comment：{addCommentReqData.content}");
    }

    public override ResponseData NewResponseData() => new AddCommentResponseData();

    //public override ResponseBase GetResponseHandler()
    //{
    //    return new Response_AddComment();
    //}
}
//public class Response_AddComment : ResponseBase
//{

//    public override ResponseData NewResponseData() => new AddCommentResponseData();

//    public override void Excuate()
//    {
//        //GameDebug.LogShowy("Request_AddComment -> Excuate");

//        (this.request as Request_AddComment).onResponse?.Invoke(this);
//    }
//}
